package bartek.klasy;

public class Stol {
	
	String material;
	Blat blat;
	Noga noga1;
	Noga noga2;
	Noga noga3;
	Noga noga4;
	String stan;
	
	Stol(String material, String ksztaltBlatu, String ksztaltNog)
	{
		this.material = material;
		this.stan = "nowy";
		noga1 = new Noga(material, ksztaltNog);
		noga2 = new Noga(material, ksztaltNog);
		noga3 = new Noga(material, ksztaltNog);
		noga4 = new Noga(material, ksztaltNog);
		blat = new Blat(material, ksztaltBlatu);
	}
}
